//
//  HotCarTableViewCell.m
//  Car
//
//  Created by lanou on 15/9/17.
//  Copyright (c) 2015年 朱鸿儒. All rights reserved.
//

#import "HotCarTableViewCell.h"

@implementation HotCarTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self) {
        self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
        self.selectionStyle = 0;
        for (int i = 0; i < 10; i ++) {
            if (i < 5) {
            
            UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(10 + 65 * i,0, 60, 40)];
            image.backgroundColor = [UIColor redColor];
            [self addSubview:image];
            
            UILabel *lable = [[UILabel alloc]initWithFrame:CGRectMake(10 + 65 * i, 40, 60, 20)];
            lable.backgroundColor = [UIColor greenColor];
            [self addSubview:lable];
            }
            else{
                UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(10 + 65 * (i - 5),70, 60, 40)];
                image.backgroundColor = [UIColor redColor];
                [self addSubview:image];
                
                UILabel *lable = [[UILabel alloc]initWithFrame:CGRectMake(10 + 65 * (i - 5), 110, 60, 20)];
                lable.backgroundColor = [UIColor greenColor];
                [self addSubview:lable];

            }
        }
        

    }
    return self;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
